<extend name="base" />
<block name="style2">
      <link rel="stylesheet" type="text/css" href="__PUBLIC__/Rbac/CSS/userList.css">
      <link rel="stylesheet" type="text/css" href="__PUBLIC__/Rbac/CSS/page.css">
</block>
<block name="content">
    <div class="content">
    <h2 class="sub-header">全部用户列表</h2>
       <table>
           <tr>
             <td>用户姓名</td>
             <td>登录时间</td>
             <td>登录IP</td>
             <td>用户角色组</td>
             <td>用户状态</td>
             <td>操作</td>
           </tr>
           <foreach name="relation" item="app">
            <tr>
              <td><{$app.user_name}></td>
              <td><{$app.logtime|date="Y-m-d H:i:s",###}></td>
              <td><{$app.logip}></td>
              <td>
              <foreach name="app.role" item="v">
                  <a href='<{:U("Home/Rbac/addAccess",array("rid"=>$v["id"]))}>'><{$v.name}>|</a>
              </foreach>
              </td>
              <td>
                 <if condition="$app.lock eq 0 ">
                     未冻结
                 <else />
                     冻结
                 </if>
              </td>
              <td><a href='__URL__/lockMod?id=<{$app.id}>&status=1'><button class="lock">冻结</button></a>
              <a href='__URL__/lockMod?id=<{$app.id}>&status=0'><button class="unlock">解冻</button></a></td>
            </tr>
           </foreach>
           <if condition="$count gt $listRows">
           <tr><td colspan="6"><{$show}></td></tr>
           </if>
        </table>
    </div>
</block>